package com.sunny.springboot2.event;

import org.springframework.context.ApplicationListener;

/**
 * 事件监听处理
 */
public class CustomEventHandler implements ApplicationListener<CustomEvent>{

   public void onApplicationEvent(CustomEvent event) {
      System.out.println(event.toString());
   }
}